﻿<Window x:Class="TextDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="TextDialog" Width="427" SizeToContent="Height" ResizeMode="NoResize"
    WindowStyle="None" AllowsTransparency="True" Background="Transparent">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>


        <Grid Grid.Row="0">
            <Border x:Name="topBar" MouseLeftButtonDown="topBar_MouseLeftButtonDown" Background="#FF000000" BorderBrush="#FFFFFFFF" CornerRadius="5,5,0,0">

            </Border>

            <Label HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" FontFamily="Agency FB" FontSize="20" FontWeight="Bold" Foreground="#FFFFFFFF">
                <TextBlock x:Name="TitleTextBlock">Title</TextBlock>
            </Label>
        </Grid>

        <Border Grid.Row="1" Width="Auto" Height="60" VerticalAlignment="Stretch">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.713,1" StartPoint="0.713,0">
                    <GradientStop Color="#FFFFFFFF" Offset="0.933"/>
                    <GradientStop Color="CornflowerBlue" Offset="0.337"/>
                </LinearGradientBrush>
            </Border.Background>
            
            
            <Grid VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                
                <Label VerticalAlignment="Top" x:Name="mainContent" Grid.Column="0" FontFamily="Agency FB" FontSize="16" FontWeight="Bold" >

                    <TextBlock Name="PromptTextBlock" Foreground="White" >
                                 <TextBlock.BitmapEffect>
                                            <DropShadowBitmapEffect
                                              ShadowDepth="4"
                                              Direction="330"
                                              Color="Black"
                                              Opacity="0.5"
                                              Softness="0.25" />
                                     </TextBlock.BitmapEffect>
                                
                                Prompt
                                
                            </TextBlock>
                </Label>
                
                <TextBox TextChanged="ValueTextBox_TextChanged"  Margin="4" Height="Auto" VerticalAlignment="Center" Grid.Column="1" Name="ValueTextBox"></TextBox>
            </Grid>    
        </Border>

        <Border Grid.Row="2" Background="#FF2E2E2E" BorderBrush="#FFFFFFFF" CornerRadius="0,0,5,5">
            <WrapPanel  HorizontalAlignment="Right">
                <Button Margin="4"  Style="{StaticResource SubmitButton}" x:Name="OKButton" IsDefault="True" Grid.Column="1" MinWidth="80" Click="OKButton_Click">OK</Button>
                <Button Margin="4" Style="{StaticResource SubmitButton}" x:Name="CancelButton" IsCancel="True" Grid.Column="3" MinWidth="80" Click="CancelButton_Click">Cancel</Button>
            </WrapPanel>
        </Border>
    </Grid>
    
    <!--<Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="4" />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="10" />
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="4" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            
            <TextBlock x:Name="PromptTextBlock" Margin="4">Caption</TextBlock>
            <TextBox Grid.Column="2" Name="ValueTextBox"></TextBox>
        </Grid>
        
        <Grid Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="4" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            
            <Button Style="{StaticResource SubmitButton}" x:Name="OKButton" IsDefault="True" Grid.Column="1" MinWidth="80">OK</Button>
            <Button Style="{StaticResource SubmitButton}" x:Name="CancelButton" IsCancel="True" Grid.Column="3" MinWidth="80">Cancel</Button>
        </Grid>
        
    </Grid>-->
</Window>
